package edu.sctu.practice.class01.xiangkun.assign02.circle;

/**
 * Created by xiangkun on 2015/10/8.
 */
public class Circle {

    final double PI = 3.1415926;

    private double radius = 2;
    public double getRadius() {
        return radius;
    }

    private static int numOfObjects = 0;
    public static int getNumOfObjects() {
        return numOfObjects;
    }

    private double res = 0;

    public Circle(double radius){
        this.radius = radius;
        numOfObjects ++;
    }

    public double circleArea(){
         res = PI * radius * radius;
        return res;
    }

}
